import 'package:distribution_mall_flutter/constant/cf_constant.dart';
import 'package:distribution_mall_flutter/generated/l10n.dart';
import 'package:distribution_mall_flutter/widgets/modal_button.dart';
import 'package:flutter/material.dart';
import 'package:getwidget/components/radio_list_tile/gf_radio_list_tile.dart';
import 'package:getwidget/types/gf_radio_type.dart';

class ModalLogistics extends StatelessWidget {
  const ModalLogistics({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      constraints: BoxConstraints(
        maxHeight: MediaQuery.of(context).size.height * 0.7,
      ),
      child: Scaffold(
        appBar: null,
        bottomNavigationBar: null,
        body: EPModalButton(
            title: S.of(context).logisticsOption,
            hasDefaultFooter: true,
            children: [],
            child: Column(
              children: [
                SizedBox(
                  child: GFRadioListTile(
                    onChanged: (value) {},
                    onTap: () {},
                    titleText: 'Arthur Shelby',
                    subTitleText: 'By order of the peaky blinders',
                    padding: EdgeInsets.zero,
                    margin: const EdgeInsets.symmetric(
                        vertical: EdgeConstant.edge10, horizontal: 0),
                    size: 21,
                    inactiveBorderColor: const Color.fromRGBO(0, 0, 0, 0.15),
                    activeBorderColor: Colors.transparent,
                    // focusColor: ColorConstant.primaryColor,
                    radioColor: ColorConstant.primaryColor,
                    activeIcon: const Icon(
                      Icons.check_circle_sharp,
                      color: Color.fromRGBO(250, 100, 0, 1),
                      size: 20,
                    ),
                    value: 1,
                    type: GFRadioType.custom,
                    groupValue: 1,
                    inactiveIcon: null,
                  ),
                )
              ],
            )),
      ),
    );
  }
}
